<?php

namespace App\Services;

use EasyWeChat;

class WechatService extends BaseService
{
    protected $app;

    public function __construct()
    {
        $this->app = EasyWeChat::work();
    }

    public function Oauth()
    {
        $callbackUrl = 'https://xxx.xxx';
        $redirect = $this->app->oauth->redirect($callbackUrl);
        $redirect->send();
    }
}
